$OpenBSD: patch-bjnp-commands_c,v 1.1 2017/05/04 20:25:51 espie Exp $

Index: bjnp-commands.c
--- bjnp-commands.c.orig
+++ bjnp-commands.c
@@ -184,10 +184,8 @@ get_printer_id(http_addr_t *addr, char *model, char *I
 
     /* set IEEE1284_id */
 
-    if (printer_id != NULL) {
-        strncpy(printer_id, id.udp_identity_response.id, id_len);
-        printer_id[id_len] = '\0';
-    }
+    strncpy(printer_id, id.udp_identity_response.id, id_len);
+    printer_id[id_len] = '\0';
 
     bjnp_debug(LOG_INFO, "Identity = %s\n", printer_id);
 
